package com.aidex.biz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
/**
 * 对账详情对象 biz_bill_info_details
 * @author sean
 * @email 2074844820@qq.com
 * @date 2023-09-27
 */
@Data
public class BillInfoDetails extends BaseEntity<BillInfoDetails>
{
    private static final long serialVersionUID = 1L;



    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 账单ID */
    @Excel(name = "账单ID")
    private String billId;

    /** 账单金额 */
    private BigDecimal money;

    /** 排序 */
    private Long sort;

    /** 状态（0待出账 1 已出账） */
    @NotBlank(message = "状态（0正常 1 停用）不允许为空")
    private String status;

    /**
     * 0 洗护 1商城
     *
     */
    private String type;

    /**
     * 出账统计
     */
    private BigDecimal sumMoney;

    private Integer counts;




    public void setBillId(String billId) 
    {
        this.billId = billId;
    }

    public String getBillId() 
    {
        return billId;
    }

    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("userName", getUserName())
            .append("deptName", getDeptName())
            .append("companyId", getCompanyId())

            .append("billId", getBillId())
            .append("money", getMoney())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
